export type Method = 'get' | 'GET' | 'delete' | 'Delete' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH'

export interface ApiUnitConfig {
  name: string
  path: string
  desc?: string
  method: Method
  baseURL?: string
  auth?: boolean
  params?: any
  headers?: any
  data?: any // 不建议使用
  isFormData?: boolean
  needToken?: boolean
  isUpload?: boolean
}
